//
//  WJMianModel.h
//  WJBSApp
//
//  Created by 王景伟 on 2018/11/22.
//  Copyright © 2018 王景伟. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface User : NSObject
@property (nonatomic, strong) NSString *name;// 名字
@property (nonatomic, strong) NSString *uid; // 制作者的网址
@property (nonatomic, strong) NSArray<NSString *> *header;// 头像
@property (nonatomic, assign) BOOL is_vip; // 是否是VIP
@property (nonatomic, assign) BOOL is_v; // 是否含有V
@property (nonatomic, strong) NSString *sex; // 性别
@end


@interface Image : NSObject
@property (nonatomic, assign) NSInteger width;// 宽
@property (nonatomic, assign) NSInteger height;// 长
@property (nonatomic, strong) NSArray<NSString *> *medium;// 中图
@property (nonatomic, strong) NSArray<NSString *> *small;// 小图
@property (nonatomic, strong) NSArray<NSString *> *big;// 大图
@property (nonatomic, strong) NSArray<NSString *> *download_url;// 这个才是页面上要显示的图片
@property (nonatomic, strong) NSArray<NSString *> *thumbnail_small;// 这个才是页面上要显示的图片
@end


@interface Gif : NSObject
@property (nonatomic, assign) NSInteger height; // 长
@property (nonatomic, assign) NSInteger width; // 宽
@property (nonatomic, strong) NSArray<NSString *> *download_url; // 里面是动态图的图片
@property (nonatomic, strong) NSArray<NSString *> *images; // 里面是动态图的图片
@property (nonatomic, strong) NSArray<NSString *> *gif_thumbnail; // 动态图
@end



@interface Video : NSObject
@property (nonatomic, assign) NSInteger height; // 长
@property (nonatomic, assign) NSInteger width; // 宽
@property (nonatomic, assign) NSInteger playfcount;
@property (nonatomic, assign) NSInteger duration; // 时间
@property (nonatomic, assign) NSInteger playcount; // 播放次数
@property (nonatomic, strong) NSArray<NSString *> *thumbnail; // Cell显示的图片
@property (nonatomic, strong) NSArray<NSString *> *download; // 下载 网址
@property (nonatomic, strong) NSArray<NSString *> *video; // 播放的网址
@property (nonatomic, strong) NSArray<NSString *> *thumbnail_small;// 这个才是页面上要显示的图片
@end



@interface Audio : NSObject
@property (nonatomic, assign) NSInteger height; // 长
@property (nonatomic, assign) NSInteger width; // 宽
@property (nonatomic, assign) NSInteger playfcount;
@property (nonatomic, assign) NSInteger duration; // 时间
@property (nonatomic, assign) NSInteger playcount; // 播放次数
@property (nonatomic, strong) NSArray<NSString *> *thumbnail;// Cell显示的图片
@property (nonatomic, strong) NSArray<NSString *> *download_url;// 下载的网址
@property (nonatomic, strong) NSArray<NSString *> *audio;// 播放的网址
@property (nonatomic, strong) NSArray<NSString *> *thumbnail_small;// 这个才是页面上要显示的图片
@end



@interface Html : NSObject
@property (nonatomic, strong) NSString *body;
@property (nonatomic, strong) NSString *title;
@property (nonatomic ,strong) NSString *source_url;
@property (nonatomic, strong) NSString *desc;
@property (nonatomic, strong) NSArray<NSString *> *thumbnail;
@property (nonatomic ,strong) NSDictionary *view;
@end



@interface TopComment : NSObject
@property (nonatomic, assign) NSInteger idStr;
@property (nonatomic, assign) NSInteger precid;
@property (nonatomic, assign) NSInteger voicetime;
@property (nonatomic, assign) NSInteger preuid;
@property (nonatomic, strong) NSString *content;
@property (nonatomic, strong) NSString *like_count;
@property (nonatomic, strong) NSString *hate_count;
@property (nonatomic, strong) NSString *passtime;
@property (nonatomic, strong) NSString *voiceuri;
@property (nonatomic, strong) User *user; // 制作人的信息
@property (nonatomic, strong) NSString *showText; // 制作人的信息
@end



@interface Tag : NSObject
@property (nonatomic, strong) NSString *idStr;
@property (nonatomic, strong) NSString *name;
@end



@interface WJMainModel : NSObject
@property (nonatomic, strong) NSString *idStr; // ID  本页
@property (nonatomic, strong) User *user; // 制作人的信息
@property (nonatomic, strong) NSString *passtime; // 时间
@property (nonatomic, strong) NSString *text; // 标题

@property (nonatomic, strong) NSString *type; // 类型 (图片,动态图,还是音乐,视屏)
@property (nonatomic, strong) Image *image; // 图片
@property (nonatomic, strong) Gif *gif; // 动态图
@property (nonatomic, strong) Video *video; // 视屏
@property (nonatomic, strong) Audio *audio; // 音乐
@property (nonatomic, strong) Html *html; // html
@property (nonatomic, strong) NSArray<TopComment *> *topComments; //热评
@property (nonatomic, strong) NSArray<Tag *> *tags; // 标签

@property (nonatomic, strong) NSString *up;// 损
@property (nonatomic, strong) NSString *down;// 赞
@property (nonatomic, strong) NSString *forward;// 转发
@property (nonatomic, strong) NSString *comment;// 评论

@property (nonatomic, strong) NSString *share_url;// 分享要使用的网址
@property (nonatomic, assign) NSInteger status;
@property (nonatomic, strong) NSString *bookmark;


@property (nonatomic, assign) CGFloat cellHeight;

@end
